//
//  UseCarHome.m
//  xjairOA
//
//  Created by apple on 16-1-25.
//  Copyright (c) 2016年 net. All rights reserved.
//

#import "UseCarHome.h"

@implementation UseCarHome

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationItem.title = @"用车预约";
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
    self.dataArray = [NSArray arrayWithObjects:@"预约用车",@"我的预约",nil];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.dataArray.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSInteger rowNO = indexPath.row;
    NSString * identifier;
    if (rowNO==0) {
        identifier = @"useCarCell1";
    }else if(rowNO==1){
        identifier = @"useCarCell2";
    }
    UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:identifier forIndexPath:indexPath];
    cell.layer.cornerRadius=12;
    cell.layer.masksToBounds=YES;
    UILabel * label = (UILabel*)[cell viewWithTag:1];
    label.text = [self.dataArray objectAtIndex:indexPath.row];
    return cell;
    
}
@end
